.class public Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "FileTransferHistoryItemViewHolder.java"


# instance fields
.field public a:Landroid/widget/ImageView;

.field public b:Landroid/widget/ImageView;

.field public c:Landroid/widget/TextView;

.field public d:Landroid/widget/TextView;

.field public e:Landroid/widget/TextView;

.field public f:Landroid/widget/ImageView;

.field public g:Landroidx/appcompat/widget/AppCompatCheckBox;

.field private h:Ljava/text/SimpleDateFormat;


# direct methods
.method public constructor <init>(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V

    .line 2
    new-instance p1, Ljava/text/SimpleDateFormat;

    const-string v0, "yyyy-MM-dd"

    invoke-direct {p1, v0}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->h:Ljava/text/SimpleDateFormat;

    .line 3
    new-instance p1, Ljava/text/SimpleDateFormat;

    invoke-direct {p1, v0}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->d()V

    return-void
.end method


# virtual methods
.method public a(Les/pl;Lcom/estrongs/android/pop/app/analysis/adapters/ExpandableAdapter$f;)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->a:Landroid/widget/ImageView;

    invoke-static {p1, v0}, Lcom/estrongs/android/icon/loader/c;->a(Lcom/estrongs/fs/g;Landroid/widget/ImageView;)V

    .line 2
    iget-object v0, p1, Les/pl;->v:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->c:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/estrongs/fs/a;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->c:Landroid/widget/TextView;

    iget-object v1, p1, Les/pl;->v:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 5
    :goto_0
    iget-boolean v0, p1, Les/pl;->u:Z

    if-eqz v0, :cond_1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->d:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget v2, p1, Les/pl;->t:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v2

    const v3, 0x7f1102d6

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 7
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->d:Landroid/widget/TextView;

    invoke-virtual {p1}, Lcom/estrongs/fs/a;->length()J

    move-result-wide v1

    invoke-static {v1, v2}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 8
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->e:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->h:Ljava/text/SimpleDateFormat;

    invoke-virtual {p1}, Lcom/estrongs/fs/a;->lastModified()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->g:Landroidx/appcompat/widget/AppCompatCheckBox;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 10
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->g:Landroidx/appcompat/widget/AppCompatCheckBox;

    iget-boolean v1, p1, Les/pl;->s:Z

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 12
    iget v0, p1, Les/pl;->q:I

    if-nez v0, :cond_2

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->f:Landroid/widget/ImageView;

    const v1, 0x7f0803b4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 14
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->f:Landroid/widget/ImageView;

    const v1, 0x7f0803b3

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 15
    :goto_2
    sget-boolean v0, Lcom/estrongs/android/view/y;->q1:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->b:Landroid/widget/ImageView;

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->g:Landroidx/appcompat/widget/AppCompatCheckBox;

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setVisibility(I)V

    goto :goto_3

    .line 18
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->g:Landroidx/appcompat/widget/AppCompatCheckBox;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 20
    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->g:Landroidx/appcompat/widget/AppCompatCheckBox;

    new-instance v1, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder$b;

    invoke-direct {v1, p0, p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder$b;-><init>(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;Les/pl;Lcom/estrongs/android/pop/app/analysis/adapters/ExpandableAdapter$f;)V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 21
    iget-object p1, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance p2, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder$c;

    invoke-direct {p2, p0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder$c;-><init>(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;)V

    invoke-virtual {p1, p2}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    return-void
.end method

.method public d()V
    .locals 2

    .line 1
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f090439

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->a:Landroid/widget/ImageView;

    .line 2
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0904c6

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->b:Landroid/widget/ImageView;

    .line 3
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f09043a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->f:Landroid/widget/ImageView;

    .line 4
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f090cce

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->c:Landroid/widget/TextView;

    .line 5
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f090cd0

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->d:Landroid/widget/TextView;

    .line 6
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f090440

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->e:Landroid/widget/TextView;

    .line 7
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f09043b

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/appcompat/widget/AppCompatCheckBox;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->g:Landroidx/appcompat/widget/AppCompatCheckBox;

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;->b:Landroid/widget/ImageView;

    new-instance v1, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder$a;-><init>(Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferHistoryItemViewHolder;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method
